package c.e.b.h.e.i;

import android.os.Bundle;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;

/* compiled from: BlockingAnalyticsEventLogger */
public class c implements b, a {
    public final e a;
    public final Object b = new Object();
    public CountDownLatch c;

    public c(e eVar, int i, TimeUnit timeUnit) {
        this.a = eVar;
    }

    /* JADX WARNING: Missing exception handler attribute for start block: B:9:0x0039 */
    /* JADX WARNING: Can't wrap try/catch for region: R(2:9|10) */
    /* JADX WARNING: Missing block: B:10:?, code skipped:
            r0.b("Interrupted while awaiting app exception callback from FA listener.");
     */
    public void a(java.lang.String r5, android.os.Bundle r6) {
        /*
        r4 = this;
        r0 = c.e.b.h.e.b.a;
        r1 = r4.b;
        monitor-enter(r1);
        r2 = "Logging Crashlytics event to Firebase";
        r0.b(r2);	 Catch:{ all -> 0x0043 }
        r2 = new java.util.concurrent.CountDownLatch;	 Catch:{ all -> 0x0043 }
        r3 = 1;
        r2.<init>(r3);	 Catch:{ all -> 0x0043 }
        r4.c = r2;	 Catch:{ all -> 0x0043 }
        r2 = r4.a;	 Catch:{ all -> 0x0043 }
        r2 = r2.a;	 Catch:{ all -> 0x0043 }
        r3 = "clx";
        r2.b(r3, r5, r6);	 Catch:{ all -> 0x0043 }
        r5 = "Awaiting app exception callback from FA...";
        r0.b(r5);	 Catch:{ all -> 0x0043 }
        r5 = r4.c;	 Catch:{ InterruptedException -> 0x0039 }
        r6 = 500; // 0x1f4 float:7.0E-43 double:2.47E-321;
        r2 = (long) r6;	 Catch:{ InterruptedException -> 0x0039 }
        r6 = java.util.concurrent.TimeUnit.MILLISECONDS;	 Catch:{ InterruptedException -> 0x0039 }
        r5 = r5.await(r2, r6);	 Catch:{ InterruptedException -> 0x0039 }
        if (r5 == 0) goto L_0x0033;
    L_0x002d:
        r5 = "App exception callback received from FA listener.";
        r0.b(r5);	 Catch:{ InterruptedException -> 0x0039 }
        goto L_0x003e;
    L_0x0033:
        r5 = "Timeout exceeded while awaiting app exception callback from FA listener.";
        r0.b(r5);	 Catch:{ InterruptedException -> 0x0039 }
        goto L_0x003e;
    L_0x0039:
        r5 = "Interrupted while awaiting app exception callback from FA listener.";
        r0.b(r5);	 Catch:{ all -> 0x0043 }
    L_0x003e:
        r5 = 0;
        r4.c = r5;	 Catch:{ all -> 0x0043 }
        monitor-exit(r1);	 Catch:{ all -> 0x0043 }
        return;
    L_0x0043:
        r5 = move-exception;
        monitor-exit(r1);	 Catch:{ all -> 0x0043 }
        throw r5;
        */
        throw new UnsupportedOperationException("Method not decompiled: c.e.b.h.e.i.c.a(java.lang.String, android.os.Bundle):void");
    }

    public void b(String str, Bundle bundle) {
        CountDownLatch countDownLatch = this.c;
        if (countDownLatch != null && "_ae".equals(str)) {
            countDownLatch.countDown();
        }
    }
}
